<?php
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 foldmethod=marker: */
require_once 'PEAR/Exception.php';
/**
 * class definition of XML/Crypt
 *
 * PHP version 5
 *
 * LICENSE: This source file is subject to version 3.0 of the PHP license
 * that is available through the world-wide-web at the following URI:
 * http://www.php.net/license/3_0.txt.  If you did not receive a copy of
 * the PHP License and are unable to obtain it through the web, please
 * send a note to license@php.net so we can mail you a copy immediately.
 *
 * @category    XML
 * @package     XML_Crypt
 * @author      Josh Peters <jcpeters@gmail.com>
 * @copyright   2006 Josh Peters
 * @license     http://www.opensource.org/licenses/bsd-license.php BSD License
 * @version     0.1
 * @link        http://pear.php.net/package/XML_Crypt
 */
// {{{ XML_Crypt_Constants
class XML_Crypt_Constants
{
    // {{{ Class Constants
    /**
     * URI of the encryption namespace
     */
    const NS_ENCRYPTION         = 'http://www.w3.org/2001/04/xmlenc#';
    /**
     * URI of the digital signature namespace
     */
    const NS_SIGNATURE          = 'http://www.w3.org/2000/09/xmldsig#';
    /**
     * URI of EncryptedData's possible Type attribute; denotes an element
     */
    const TYPE_ELEMENT          = 'http://www.w3.org/2001/04/xmlenc#Element';
    /**
     * URI of EncryptedData's possible Type attribute; denotes content only
     */
    const TYPE_CONTENT          = 'http://www.w3.org/2001/04/xmlenc#Content';
    /**
     * URI of Block Cipher Triple DES
     */
    const BLOCK_3DES            = 'http://www.w3.org/2001/04/xmlenc#tripledes-cbc';
    /**
     * URI of Block Cipher AES-128
     */
    const BLOCK_AES128          = 'http://www.w3.org/2001/04/xmlenc#aes128-cbc';
    /**
     * URI of Block Cipher AES-256
     */
    const BLOCK_AES256          = 'http://www.w3.org/2001/04/xmlenc#aes256-cbc';
    /**
     * URI of Block Cipher AES-192
     */
    const BLOCK_AES192          = 'http://www.w3.org/2001/04/xmlenc#aes192-cbc';
    /**
     * URI denoting base64-transformed content
     */
    const ENCODING_BASE64       = 'http://www.w3.org/2000/09/xmldsig#base64';
    /**
     * URI denoting XPath-transformed content
     */
    const ENCODING_XPATH        = 'http://www.w3.org/TR/1999/REC-xpath-19991116';
    /**
     * denotes usage of RSA 1.5 for transport
     */
    const TRANSPORT_RSA_1_5     = 'http://www.w3.org/2001/04/xmlenc#rsa-1_5';
    /**
     * denotes usage of OAEP for transport
     */
    const TRANSPORT_OAEP        = 'http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p';
    /**
     * denotes usage of Diffie-Hellman Key Agreement Protocol
     */
    const AGREE_DIFFIEHELLMAN   = 'http://www.w3.org/2001/04/xmlenc#dh';

    /**
     * denotes usage of Triple DES algorithm for Symmetric Key Wrap
     */
    const KEYWRAP_3DES          = 'http://www.w3.org/2001/04/xmlenc#kw-tripledes';
    /**
     * denotes usage of AES-128 algorithm for Symmetric Key Wrap
     */
    const KEYWRAP_AES128        = 'http://www.w3.org/2001/04/xmlenc#kw-aes128';
    /**
     * denotes usage of AES-256 algorithm for Symmetric Key Wrap
     */
    const KEYWRAP_AES256        = 'http://www.w3.org/2001/04/xmlenc#kw-aes256';
    /**
     * denotes usage of AES-192 algorithm for Symmetric Key Wrap
     */
    const KEYWRAP_AES192        = 'http://www.w3.org/2001/04/xmlenc#kw-aes192';
    /**
     * denotes usage of SHA-1 algorithm for Message Digest
     */
    const DIGEST_SHA1           = 'http://www.w3.org/2000/09/xmldsig#sha1';
    /**
     * denotes usage of SHA-256 algorithm for Message Digest
     */
    const DIGEST_SHA256         = 'http://www.w3.org/2001/04/xmlenc#sha256';
    /**
     * denotes usage of SHA-512 algorithmfor Message Digest
     */
    const DIGEST_SHA512         = 'http://www.w3.org/2001/04/xmlenc#sha512';
    /**
     * denotes usage of RIPEMD-160 algorithm for Message Digest
     */
    const DIGEST_RIPEMD160      = 'http://www.w3.org/2001/04/xmlenc#ripemd160';
    // }}}
}
// }}}
// {{{ XML_Crypt
class XML_Crypt
{
    /**
     *
     */
    public function encryptText() {
    }
    public function encryptNode() {
    }
    public function decryptText() {
    }
    public function decryptNode() {
    }
}
// }}}
// {{{ XML_Crypt_Exception
class XML_Crypt_Exception extends PEAR_Exception
{
}
// }}}
?>
